/************************************************************************************
**                                                                                 **
**                               mcHF QRP Transceiver                              **
**                             K Atanassov - M0NKA 2014                            **
**                                                                                 **
**---------------------------------------------------------------------------------**
**                                                                                 **
**  File name:                                                                     **
**  Description:                                                                   **
**  Last Modified:                                                                 **
**  Licence:		For radio amateurs experimentation, non-commercial use only!   **
************************************************************************************/

#ifndef __I_RX_FILTER_H
#define __I_RX_FILTER_H

#define I_BLOCK_SIZE		1
#define I_NUM_TAPS			89

/*
     * Kaiser Window FIR Filter
     * Passband: 0.0 - 1350.0 Hz
     * modulation freq: 1650Hz
     * Order: 88
     * Transition band: 500.0 Hz
     * Stopband attenuation: 60.0 dB
     */
const float i_rx_coeffs[I_NUM_TAPS] =
{
      	-2.081541E-4f,
      	-3.5587244E-4f,
      	-5.237722E-5f,
      	-1.00883444E-4f,
      	-8.27162E-4f,
      	-7.391658E-4f,
      	9.386093E-5f,
      	-6.221307E-4f,
      	-0.0019506976f,
      	-8.508009E-4f,
      	2.8596455E-4f,
      	-0.002028003f,
      	-0.003321186f,
      	-2.7830937E-4f,
      	2.7148606E-9f,
      	-0.004654892f,
      	-0.0041854046f,
      	0.001115112f,
      	-0.0017027275f,
      	-0.008291345f,
      	-0.0034240147f,
      	0.0027767413f,
      	-0.005873899f,
      	-0.011811939f,
      	-2.075215E-8f,
      	0.003209243f,
      	-0.0131212445f,
      	-0.013072912f,
      	0.0064319638f,
      	1.0081245E-8f,
      	-0.023050211f,
      	-0.009034872f,
      	0.015074444f,
      	-0.010180626f,
      	-0.034043692f,
      	0.004729156f,
      	0.024004854f,
      	-0.033643555f,
      	-0.043601833f,
      	0.04075407f,
      	0.03076061f,
      	-0.10492244f,
      	-0.049181364f,
      	0.30635652f,
      	0.5324795f,
      	0.30635652f,
      	-0.049181364f,
      	-0.10492244f,
      	0.03076061f,
      	0.04075407f,
      	-0.043601833f,
      	-0.033643555f,
      	0.024004854f,
      	0.004729156f,
      	-0.034043692f,
      	-0.010180626f,
      	0.015074444f,
      	-0.009034872f,
      	-0.023050211f,
      	1.0081245E-8f,
      	0.0064319638f,
      	-0.013072912f,
      	-0.0131212445f,
      	0.003209243f,
      	-2.075215E-8f,
      	-0.011811939f,
      	-0.005873899f,
      	0.0027767413f,
      	-0.0034240147f,
      	-0.008291345f,
      	-0.0017027275f,
      	0.001115112f,
      	-0.0041854046f,
      	-0.004654892f,
      	2.7148606E-9f,
      	-2.7830937E-4f,
      	-0.003321186f,
      	-0.002028003f,
      	2.8596455E-4f,
      	-8.508009E-4f,
      	-0.0019506976f,
      	-6.221307E-4f,
      	9.386093E-5f,
      	-7.391658E-4f,
      	-8.27162E-4f,
      	-1.00883444E-4f,
      	-5.237722E-5f,
      	-3.5587244E-4f,
      	-2.081541E-4f
};

static float32_t 		FirState_I[128];
arm_fir_instance_f32 	FIR_I;

#endif
